'''
Created on 2009-11-11

@author: Jialai_Zhu
'''
import os
import subprocess
def    run(args):
    cmd=[]
    i=0
    while i < len(args):
        cmd.append(args[i])
        i+=1
    print cmd    
    x=subprocess.Popen(args,shell=False) 
    return x  
#    os.system(cmd)


def kill(process):
    process.terminate()
    return